package com.accesshollywood.grfxOrdering.orderTreeSpecial.nodes;

import java.awt.Dimension;
import java.awt.FlowLayout;

import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.border.EtchedBorder;
import javax.swing.border.TitledBorder;
import javax.swing.tree.DefaultMutableTreeNode;

import com.accesshollywood.grfxOrdering.orderTreeSpecial.models.NotesTableModel;
import com.accesshollywood.indexables.GrfxOrder;

public class NotesTreeNode extends DefaultMutableTreeNode {
	/*
	public NotesTableModel model;
	
	public NotesTreeNode(GrfxOrder grfxOrder){
		model = new NotesTableModel(grfxOrder);
	}

	public void adjPanel(JPanel panel, NotesTableModel currOrder) {
		String n = currOrder.notes();
		if(currOrder != null && currOrder.notes() != null && currOrder.notes() != ""){
			JPanel subPanel = new JPanel();
			subPanel.setLayout(new FlowLayout());
			subPanel.setBorder(new TitledBorder(new EtchedBorder(), "Notes"));
			JTextArea noteBox = new JTextArea(3,59);
			noteBox.setText(currOrder.notes());
			JScrollPane notePane = new JScrollPane(noteBox);
			subPanel.add(notePane);
			
			panel.add(subPanel);
		}
	}

	*/
}
